<div class="search-paging mgt15 pull-right"><?php echo $pagingBar; ?></div>
<div class="clearfix"></div>
<?php if(count($result) > 0) { ?>
<ul class="clearPad" id="search-post-list">
    <?php foreach($result as $item) { ?>
    <li class="mgbt10">
        <div class="media">
            <h4><a class="item-title" href="<?php echo post_single_url($item->getSlug()); ?>"><?php echo $item->getTitle(); ?></a></h4>
            <div class="media-body">
                <?php if($item->getImage()!='' && image_exist(POST_IMAGE_URL . $item->getImage())) { ?>
                <a class="image pull-left" href="<?php echo post_single_url($item->getSlug()); ?>">
                    <img class="media-object thumbnail w150" src="<?php echo upload(POST_IMAGE_URL . $item->getImage(), TRUE); ?>" alt="..."/>
                </a>
                <?php } ?>
                <div class="search-breadcrumb">
                    <a class="text-success" href="<?php echo post_cate_url($item->cate_slug); ?>"><?php echo $item->cate_title; ?></a>
                    &nbsp;&gt;&nbsp;
                    <a class="text-success" href="<?php echo post_single_url($item->slug); ?>"><?php echo $item->getTitle(); ?></a>
                </div>
                <p class="description"><?php echo $item->getDescription(); ?></p>
            </div>
        </div>
    </li>
    <?php } ?>
</ul>
<?php } ?>